package com.zhl.scheduling.model.entity;

import javax.persistence.*;

@Table(name = "workpiece_category")
public class WorkpieceCategory {
    /**
     * 类别id
     */
    @Id
    @Column(name = "category_id")
    private Integer categoryId;

    /**
     * 类别名称
     */
    @Column(name = "category_name")
    private String categoryName;

    /**
     * 获取类别id
     *
     * @return category_id - 类别id
     */
    public Integer getCategoryId() {
        return categoryId;
    }

    /**
     * 设置类别id
     *
     * @param categoryId 类别id
     */
    public void setCategoryId(Integer categoryId) {
        this.categoryId = categoryId;
    }

    /**
     * 获取类别名称
     *
     * @return category_name - 类别名称
     */
    public String getCategoryName() {
        return categoryName;
    }

    /**
     * 设置类别名称
     *
     * @param categoryName 类别名称
     */
    public void setCategoryName(String categoryName) {
        this.categoryName = categoryName;
    }
}